package com.test.ssm.service.impl;

import com.test.ssm.dao.ClassInfoDAO;
import com.test.ssm.pojo.ClassInfo;
import com.test.ssm.service.ClassInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 徒有琴
 */
@Service
public class ClassInfoServiceImpl implements ClassInfoService {
    @Autowired
    private ClassInfoDAO classInfoDAO;

    @Override
    public List<ClassInfo> getClassList(Integer teacherId) {
        return classInfoDAO.getClassList(teacherId);
    }

    @Override
    public ClassInfo getClassById(Integer id) {
        return classInfoDAO.getClassById(id);
    }
}
